<?php
/*
	
*/
defined('BY_JYA') or exit('Access Denied');
global $_RQ,$_AR;
cfc('core')->checklogin();
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return=array();
if($_RQ['op']=='main'){
	$info=array();
	$post=get_postdata();
	$info['start_seat']=$_RQ['start_seat'];
	$info['dest_seat']=$_RQ['dest_seat'];
	$return['info']=$info;
	exi($return);	
}
if($_RQ['op']=='post'){
	$post=get_postdata();
	$data=array_fields(array('start_seat','dest_seat'),$post);
	$data['mid']=$_SESSION['uid'];
	$member=pdo_get('jy_taxi_member',array('mid'=>$_SESSION['uid']));
	$data['name']=$member['name'];
	$data['mobile']=$member['mobile'];
	$data['createtime']=TIMESTAMP;
	$data['price1']='';
	$data['price2']='';
	$data['price']='';
	pdo_insert('jy_taxi_order',$data);
	
}
